﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AircraftBattleServer
{
    [Serializable]
    public class MapData
    {
        public Dictionary<int, Aircraft> aircrafts = new Dictionary<int, Aircraft>();
        public List<Missile> missiles = new List<Missile>();
        
        // for game lounge
        public List<User> userList = new List<User>();
        public int winer = 0; // 1 for team 1, 2 for team 2, 3 for draw;

        public Aircraft GetAircraft(int id)
        {
            if (!aircrafts.ContainsKey(id)) return null;
            else return aircrafts[id];
        }

        internal void Clear()
        {
            this.userList.Clear();
            this.aircrafts.Clear();
            this.missiles.Clear();
            this.winer = 0;
        }
    }
}
